<!DOCTYPE html>
<html lang='en'>
<head>
  <meta charset='UTF-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title></title>
  <script type='text/javascript' src='js/vue.js'></script>
</head>
<body>
  <div id='app'>
    <div>
      <current-user :user="user" v-slot="slotProps">
        {{ user.firstName }}
      </current-user>
    </div>
  </div>
  <script type='text/javascript'>
    Vue.component('current-user', {
      template: `
        <span>
          <slot>{{ user.lastName }}</slot>
        </span>
      `,
      props: ['user']
    })
    var vm = new Vue({
      el: '#app',
      data: {
        user: {
          lastName: 'Hao',
          firstName: 'Harry'
        }
      },
      methods: {
        
      }
    });
  </script>
</body>
</html>